package com.genghis.ptas.comment.dao;

import com.genghis.core.page.entity.Page;
import com.genghis.core.page.entity.PageParameter;
import com.genghis.ptas.comment.entity.Comment;

import java.util.List;

/**
 * @author tiangc
 * @version 1.0.1
 */

public interface CommentDao {

    int addScormComment(Comment comment);

    Comment findCommentByScormIdAndUseId(int scormId,int userId);

    Comment findCommentById(int id);

    int findIsCommentById(int scormId,int userId);

    List<Comment> findCommentListByScormId(int scormId);

    Page<Comment> listScormComment(PageParameter pageParameter,Comment comment);

    int deleteCommentByid(int id);

    void editComment(Comment comment);

}